/**
 * @author ferdi
 * @brief Main Gui Framework extends MainWindow and hosts therefor all 
 * 		  menus y toolbars
 */

#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_

#include <QMainWindow>
#include "Document/DocumentManager.h"
#include <QFont>

class QDockWidget;
class QTextEdit;
class QAction;
class Splitter;
class QFontComboBox;
class QComboBox;


class MainWindow : public QMainWindow{
Q_OBJECT
	
public:
	MainWindow(QWidget* parent = 0);
	QAction  *action_text_bold,
	         *action_text_underline,
	         *action_text_italic,
	         *action_align_left,
	         *action_align_center,
	         *action_align_right,
	         *action_undo,
	         *action_redo,
	         *action_cut,
	         *action_copy,
	         *action_paste,
	         *action_new,
	         *action_open,
	         *action_save,
	         *action_print;
	DocumentManager* document_manager;
	
	void setDocumentManager(DocumentManager* manager);
	
public slots:
	void fontChanged(const QFont &f);
	void alignmentChanged(Qt::Alignment a);

	
	
private slots:
    void fileNew();
    void fileOpen();
    bool fileSave();
	

private:
	void createActions();
	void createMenu();
	void createWidgetDockFiles();
	void createWidgetDockAlignment();
	

	QDockWidget* widget_dock_font;
	QFontComboBox* font_combobox;	//ZUgriff notwendig?
	QComboBox* size_combobox;
	Splitter* splitter;
};

#endif /*MAINWINDOW_H_*/
